/*package com.zhangck.bos2_0.Test;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Rollback;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.transaction.annotation.Transactional;

import com.zhangck.bos2_0.dao.CourierRepository;
import com.zhangck.bos2_0.dao.StandardRepository;
import com.zhangck.bos2_0.dao.TakeTimeRepository;
import com.zhangck.bos2_0.domian.Courier;
import com.zhangck.bos2_0.domian.Standard;
import com.zhangck.bos2_0.domian.TakeTime;

*//** 
* @author 上午茶
* @version 创建时间：2018年5月29日 下午2:37:59 
* 类说明 
*//*
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration("classpath:applicationContext.xml")
public class Test1 {
	@Autowired
	private StandardRepository StandardRepository;
	
	@Test
	public void Test1(){
		List<Standard> byName = StandardRepository.findByName("10-20公斤");
		System.out.println(byName);
	}
	
	@Transactional
	@Test
	@Rollback(false)
	public void Test3(){
		for (int i = 0; i < 100; i++) {
	    Standard standatrd = new Standard();
		standatrd.setId(10+i);
		StandardRepository.save(standatrd);
		}
	
	}
	@Autowired
	private CourierRepository CourierRepository;
	
	@Transactional
	@Test
	@Rollback(false)
	public void Test4(){
		for (int i = 0; i < 100; i++) {
			Courier courier = new Courier();
			courier.setCompany("飞天快递");
			courier.setId(10+i);
			courier.setName("狗娃"+i);
			courier.setTelephone("110"+i);
			CourierRepository.save(courier);
		}
		}
	
	
	

	@Autowired
	private TakeTimeRepository takeTimeRepository;
	
	@Transactional
	@Test
	@Rollback(false)
	public void Test41(){
		for (int i = 0; i < 100; i++) {
			TakeTime courier = new TakeTime();
			courier.setName("沙坪坝早班"+i);
			courier.setNormalWorkTime("六点"+i);
			courier.setNormalDutyTime("十二点"+i);
			courier.setSunDutyTime("十二点半"+i);;
			courier.setSunWorkTime("八点"+i);
			takeTimeRepository.save(courier);
		}
		
	}
}
*/